<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<script type="text/javascript">
$(function(){
	$('#btn_logo_url_choose').click(function(){
		
		var dlg = new S.Dialog({
			title:'选择文件',
			modal:true,
			width:700,
			height:550,
			url:'${webcontext}/${pathvar.admin}/mc/file/choosefile?type=image&multi=false',
		 	buttons:{
		 		'确定':function(){
		 			var items = fileChooserTbl.getCheckedRow();
		 			if(items.length !=1){new S.Info({text:'请选择1个文件',type:'warn'}).show();return;}
		 			$('#link_logo_url').val(items[0].url);
		 			this.remove();
		 		},
		 		'关闭':function(){
		 			this.remove();
		 		}
		 	}
		});
		dlg.show();
		
		
	});
});
</script>
<div class="content">
	<form>
		<input type="hidden" name="id" value="${link.id }" />
		<table width="100%">
			<tr>
				<td width="50">名称</td>
				<td><input type="text" name="name"  value="${link.name}" check="required"/></td>
			</tr>
			<tr>
				<td>logo地址</td>
				<td><input type="text" name="logo" value="${link.logo }" id="link_logo_url"/> <span class="btn" id="btn_logo_url_choose"><i class="icons image_link"></i> 选择</span></td>
			</tr>
			<tr>
				<td>URL</td>
				<td><input type="text" name="url" value="${link.url }" class="long" /></td>
			</tr>
		</table>
	</form>
</div>